<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div style="padding:5px;">
<span style="padding-right:10px;">共有${pv.count}条记录 | 每页显示${pv.pageSize }条记录 | 共有${pv.pageCount}页 </span> 
<%--########################## 首页 #036CB4;--%>

<c:if test="${pv.pageNo > 1}">
	<a href="javascript:;" style="border:1px solid #DDD;padding:3px 5px;color:#666;text-decoration:none;" onmousemove="this.style.backgroundColor='#036CB4';this.style.color='#FFF'" onmouseout="this.style.backgroundColor='#FFF';this.style.color='#666'" onclick="topage(1);">|&lt; 首页</a>&nbsp;
</c:if>
<c:if test="${pv.pageNo <= 1}">
	<span style="border:1px solid #DDD;padding:3px 5px;color:#AAA;">|&lt; 首页 </span>&nbsp;
</c:if>

<%--########################## 索引 --%>

<c:forEach begin="${pv.pageIndex.begin}" end="${pv.pageIndex.end}" var="index">
	<c:if test="${pv.pageNo!=index}">
		<a style="border:1px solid #DDD;padding:3px 5px;color:#666;text-decoration:none;" onmousemove="this.style.backgroundColor='#036CB4';this.style.color='#FFF'" onmouseout="this.style.backgroundColor='#FFF';this.style.color='#666'" href="javascript:;" onclick="topage(${index});">${index}</a>&nbsp;
	</c:if>
	<c:if test="${pv.pageNo==index}">
		<span style="background-color:#036CB4;color:white;font-weight:bold;border:1px solid #EEE;padding:3px 5px;color:#DDD;" class="pagerStyle">${index}</span>
	</c:if>
</c:forEach>

<%--########################## 尾页 --%>

<c:if test="${pv.pageNo < pv.pageCount}">
	<a style="border:1px solid #DDD;padding:3px 5px;color:#666;text-decoration:none;" onmousemove="this.style.backgroundColor='#036CB4';this.style.color='#FFF'" onmouseout="this.style.backgroundColor='#FFF';this.style.color='#666'" href="javascript:;" onclick="topage(${pv.pageCount});">尾页 &gt;|</a>
</c:if>
<c:if test="${pv.pageNo >= pv.pageCount}">
	<span style="border:1px solid #DDD;padding:3px 5px;color:#AAA;">尾页 &gt;|</span>
</c:if>
</div>
